@include('usercenter.header')
    <div class="template-page-wrapper">
      <div class="navbar-collapse collapse templatemo-sidebar">
        <ul class="templatemo-sidebar-menu">
          <li>
            <form class="navbar-form">
              <input type="text" class="form-control" id="templatemo_search_box" placeholder="搜索...">
              <span class="btn btn-default"><i class="fa fa-search"></i></span>
            </form>
          </li>
          <li><a href="#"><i class="fa fa-home"></i>用户中心</a></li>
          <li class="sub">
            <a href="javascript:;">
              <i class="fa fa-database"></i> 账户设置 <div class="pull-right"><span class="caret"></span></div>
            </a>
            <ul class="templatemo-submenu">
              <li><a href="#">修改昵称</a></li>
              <li><a href="#">修改密码</a></li>
              <li><a href="#">修改绑定手机</a></li>
              <li><a href="#">修改绑定邮箱</a></li>
              <li><a href="#">修改密保</a></li>
            </ul>
          </li>
          <li class="sub active">
            <a href="javascript:;">
              <i class="fa fa-database"></i> 比赛详情
            </a>
          </li>
          <li class="sub ">
            <a href="javascript:;">
              <i class="fa fa-database"></i> 财富中心 <div class="pull-right"><span class="caret"></span></div>
            </a>
            <ul class="templatemo-submenu">
              <li><a href="#">我的煤球</a></li>
              <li><a href="#">充值记录</a></li>
              <li><a href="#">充值中心</a></li>
            </ul>
          </li>
          <li class="sub">
            <a href="javascript:;">
              <i class="fa fa-database"></i> 收信箱 <div class="pull-right"><span class="caret"></span></div>
            </a>
            <ul class="templatemo-submenu">
              <li><a href="#">所有信件</a></li>
              <li><a href="#">未读信件</a></li>
              <li><a href="#">已读信件</a></li>
            </ul>
          </li>
          <li><a href="javascript:;" data-toggle="modal" data-target="#confirmModal"><i class="fa fa-sign-out"></i>返回首页</a></li>
        </ul>
      </div><!--/.navbar-collapse -->

      <div class="templatemo-content-wrapper">
        <div class="templatemo-content">
          <ol class="breadcrumb row">
            <li><a href="index.html">用户中心</a></li>
             <li><a href="index.html">财富中心</a></li>
            <li class="active">比赛详情</li>
          </ol>

<!-- startmyself -->

             <div class="row">
               <div class="panel panel-info">
                 <div class="panel-heading">比赛详情</div>
               </div>
             </div>

              <form class="form-inline" action="{{url('user/gamedetail')}}" method="post">
              {!!csrf_field()!!}

                <div class="form-group col-md-3">
                  <label for="exampleInputName2">游戏名称</label>
                  <select  class="form-control" name="gametype">
                    @if(isset($gameinfo))
                      <option value="0" selected>{{$gameinfo['type']}}</option>
                    @endif
                    <option value="1">斗地主</option>
                    <option value="2">21点</option>
                    <option value="3">象棋</option>
                    <option value="4">五子棋</option>
                    <option value="5">打僵尸</option>
                    <option value="6">踩白块</option>
                  </select>
                </div>
               
                <input type="submit" class="btn btn-primary" value="查询">
                <input type="reset" class="btn btn-primary">
              </form>  

              <table class="table table-striped table-hover table-bordered">

                 @if(isset($gameinfo['win']) )
                  <thead>
                    <tr>
                      <th>游戏次数</th>
                      <th>胜率</th>
                      <th>负率</th>                     
                    </tr>
                  </thead>
                  <tbody>                 
                    <tr>
                      <td>{{$gameinfo['total']}}</td>
                      <td>{{$gameinfo['win']}}%</td>
                      <td>{{$gameinfo['lose']}}%</td>                                   
                    </tr>
                  </tbody>
                  @endif 

                  @if(isset($gameinfo['high'])) 
                    <thead>
                      <tr>
                        <th>游戏次数</th>
                        <th>最高分</th>
                      </tr>
                    </thead>
                    <tbody>
                      <tr>
                        <td>{{$gameinfo['total']}}</td>
                        <td>{{$gameinfo['high']}}</td>
                      </tr>
                    </tbody>
                  @endif 

                  </tbody>
                </table>
         
<!-- /startmyself -->

        </div>
      </div>
      <!-- Modal -->
      <div class="modal fade" id="confirmModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
        <div class="modal-dialog">
          <div class="modal-content">
            <div class="modal-header">
              <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
              <h4 class="modal-title" id="myModalLabel">Are you sure you want to sign out?</h4>
            </div>
            <div class="modal-footer">
              <a href="sign-in.html" class="btn btn-primary">Yes</a>
              <button type="button" class="btn btn-default" data-dismiss="modal">No</button>
            </div>
          </div>
        </div>
      </div>
    @include('usercenter.footer')
    </div>

    <script src="/user/usercenter/js/jquery.min.js"></script>
    <script src="/user/usercenter/js/bootstrap.min.js"></script>
    <script src="/user/usercenter/js/Chart.min.js"></script>
    <script src="/user/usercenter/js/templatemo_script.js"></script>
</body>
</html>
